We had to create an ai that uses Unity's nav mesh. I decided to create an ai that flees when you get too close to it.